<template>
  <div v-if="isPC" class="experience">
    <div class="tit">Experience The Future of Payments</div>
    <div class="des">Sign up for OntaPay and start experiencing the future of payments today</div>
    <div class="btnBox" @click="goToWebUrl('https://apps.apple.com/cn/app/upnetwork/id6739867617')">
      <span>Get started</span>
      <img src="@/assets/svg/arrow-Icon.svg" alt="" />
    </div>
  </div>
  <div v-else class="p_experience">
    <div class="tit">Experience The <br />Future of Payments</div>
    <div class="des">
      Sign up for OntaPay and start <br />experiencing the future of payments today
    </div>
    <div class="btnBox" @click="goToWebUrl('https://apps.apple.com/cn/app/upnetwork/id6739867617')">
      <span>Get started</span>
      <img src="@/assets/svg/arrow-Icon.svg" alt="" />
    </div>
  </div>
</template>

<script>
import { useConfig } from '@/stores/config.js'

export default {
  name: 'Experience',
  data() {
    return {}
  },
  computed: {
    isPC() {
      return useConfig().isPc
    }
  },
  beforeMount: function () {},
  mounted() {},
  methods: {
    goToWebUrl(url) {
      window.open(url, '_blank')
    }
  }
}
</script>

<style lang="scss" scoped>
.experience {
  width: 100%;
  height: 842px;
  background-image: url(@/assets/png/page3pcbg.png);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-sizing: border-box;
  padding-top: 322px;
  .tit {
    font-family: DM Sans;
    font-weight: 500;
    font-size: 58px;
    line-height: 150%;
    letter-spacing: 0%;
    text-align: center;
    text-transform: capitalize;
    color: #e8e8e8;
    margin-bottom: 4px;
  }
  .des {
    font-family: DM Sans;
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    letter-spacing: 0%;
    text-align: center;
    color: #e8e8e8;
    margin-bottom: 104px;
  }
  .btnBox {
    width: 206px;
    height: 64px;
    border-radius: 12px;
    background-color: #0f0f0f;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0px auto;
    cursor: pointer;
    span {
      font-family: DM Sans;
      font-weight: 500;
      font-size: 18px;
      line-height: 150%;
      letter-spacing: 0%;
      text-align: center;
      text-transform: capitalize;
      color: #fdfdfd;
    }
    img {
      height: 28px;
      margin-left: 10px;
    }
  }
}
.p_experience {
  width: 100%;
  height: 852px;
  background-image: url(@/assets/png/page3phonebg.png);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-sizing: border-box;
  padding-top: 322px;
  .tit {
    font-family: DM Sans;
    font-weight: 500;
    font-size: 24px;
    line-height: 150%;
    letter-spacing: 0%;
    text-align: center;
    text-transform: capitalize;
    color: #e8e8e8;
    margin-bottom: 24px;
  }
  .des {
    font-family: DM Sans;
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    letter-spacing: 0%;
    text-align: center;
    color: #e8e8e8;
    margin-bottom: 36px;
  }
  .btnBox {
    width: 206px;
    height: 64px;
    border-radius: 12px;
    background-color: #0f0f0f;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0px auto;
    span {
      font-family: DM Sans;
      font-weight: 500;
      font-size: 18px;
      line-height: 150%;
      letter-spacing: 0%;
      text-align: center;
      text-transform: capitalize;
      color: #fdfdfd;
    }
    img {
      height: 28px;
      margin-left: 10px;
    }
  }
}
</style>
